package com.hmall.mapper;

import com.hmall.model.MallPushMessage;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallPushMessageMapper extends MyMapper<MallPushMessage> {

    List<MallPushMessage> getRecentNotice();

    List<MallPushMessage> selectMyMessage(@Param("username") String username,@Param("type") String type,@Param("is_read") String is_read);

    Integer selectMyMessageCount(@Param("user_id") Integer user_id);
}